[Global Namespace]
Namespaces
Fonctions
Response|null
app_abort_if(bool $boolean, int $code, string $message = '')
Abort bow execution if condiction is true
Loader|mixed
config(string|array $key = null, mixed $setting = null)
Application configuration
null|string
cookie(string $key = null, mixed $data = null, int $expirate = 3600, string $path = null, string $domain = null, bool $secure = false, bool $http = true)
Cooke alias
array|null
curl(string $method, string $url, array $params = [], bool $return = false, string $header = null)
Curl help
db(string $name = null, callable $cb = null)
Allows to connect to another database and return the instance of the DB
int|array|stdClass
db_select(string $sql, array $data = [])
Launches SELECT SQL Queries
int|array|StdClass
db_select_one(string $sql, array $data = [])
Launches SELECT SQL Queries
int
db_statement(string $sql)
Launches CREATE TABLE, ALTER TABLE, RENAME, DROP TABLE SQL Query
void
debug()
debug, variable debug function it allows you to have a color Synthaxic data types.
string
download(string $file, null|string $filename = null, string $disposition = 'attachment', array $headers = [])
Download file
SimpleMail|Smtp|bool
email(null|string $view = null, array $data = [], callable $cb = null)
Send email
int
get_last_insert_id(string $name = null)
Returns the last ID following an INSERT query on a table whose ID is auto_increment.
Monolog
logger(string $level, string $message, array $context = [])
Log error message
Mail|mixed
raw_email(array $to, string $subject, string $message, array $headers = [])
Send raw email
string
route(string $name, array $data = [], bool $absolute = false)
Get Route by name
bool
str_contains(string $search, string $string)
Check if string contain an other string
string
trans(string $key = null, array $data = [], bool $choose = false)
Make translation
validator(array $inputs, array $rules)
Validate the information on the well-defined criterion
mixed
view(string $template, array|int $data = [], int $code = 200)
View alias of View::parse